package com.itcodai.dao.role;

import com.itcodai.entity.Role;
import com.itcodai.utils.MyMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author c-fanqj
 * @date 2023/3/27
 * @apiNote
 */
//@Mapper
//@Repository
public interface RoleMapper extends MyMapper<Role> {

    @Select("select * from tb_role where id = #{id}")
    /*@Results({
            @Result(property = "username", column = "user_name"),
            @Result(property = "password", column = "password")
    })*/
    //@Results("BaseResultMap")   // xml和注解相结合使用
    Role getRoleDetail(Long id);

}
